﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Battleborn.Core.Models;

namespace Battleborn.Core.Concrete
{
    public class BattlebornDb : DbContext
    {
        public DbSet<Player> Players { get; set; }
        public DbSet<Battle> Battles { get; set; }
        public DbSet<Champion> Champions { get; set; }
        public DbSet<Card> Cards { get; set; }
        public DbSet<CardInstance> CardInstances { get; set; }
        public DbSet<Deck> Decks { get; set; }
        public DbSet<DeckCardInstance> DeckCardInstances { get; set; }
        public BattlebornDb()
        {
#if(DEBUG)
            var initializer = new DropCreateDatabaseIfModelChanges<BattlebornDb>();
            Database.SetInitializer(initializer);
#endif
        }
    }
}
